using N2;
using N2.Details;
using N2.Integrity;
using FlexiCommerce.Web.Templates.Items;
using N2.Web.UI.WebControls;

namespace FlexiCommerce.Web.Templates.Items
{
    [Definition("Social bookmarks")]
    [RestrictParents(typeof(Templates.Items.AbstractContentPage))]
    [AllowedZones(Zones.SiteRight, Zones.Right, Zones.RecursiveRight, Zones.SiteLeft)]
    [WithEditableTitle("Title", 90)]
    public class SocialBookmarks : AbstractItem
    {
        [Displayable(typeof(H4), "Text")]
        public override string Title
        {
            get { return base.Title; }
            set { base.Title = value; }
        }

        [EditableCheckBox("Show text", 100)]
        public virtual bool ShowText
        {
            get { return (bool)(GetDetail("ShowText") ?? true); }
            set { SetDetail("ShowText", value, true); }
        }

        protected override string IconName
        {
            get { return "digg"; }
        }

        protected override string TemplateName
        {
            get { return "SocialBookmarks"; }
        }
    }
}